# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

_pkgname=pybars3
pkgname=python-$_pkgname
pkgver=0.9.7
pkgrel=8
pkgdesc='Template system for Python which is compatible with Handlebars.js'
arch=('any')
url='https://github.com/wbond/pybars3'
license=('MIT')
depends=('python' 'python-pymeta3')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('5178c120e74dce9e469dd0a4b1acb4b4dd6780b6b3d8121792fff99a6c2dd8b1222fee702300421085b568cf9437c927a89d772867e1101677d72a372acae1b6')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build

  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et:
